Optimal. Leaf size=103 \[ -\frac {b^2 \sqrt {c+d x^2}}{x}-\frac {a^2 \left (c+d x^2\right )^{3/2}}{5 c x^5}-\frac {2 a (5 b c-a d) \left (c+d x^2\right )^{3/2}}{15 c^2 x^3}+b^2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 103, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {473, 462, 283,
223, 212} \begin {gather*} -\frac {a^2 \left (c+d x^2\right )^{3/2}}{5 c x^5}-\frac {2 a \left (c+d x^2\right )^{3/2} (5 b c-a d)}{15 c^2 x^3}-\frac {b^2 \sqrt {c+d x^2}}{x}+b^2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 223
Rule 283
Rule 462
Rule 473
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^2 \sqrt {c+d x^2}}{x^6} \, dx &=-\frac {a^2 \left (c+d x^2\right )^{3/2}}{5 c x^5}+\frac {\int \frac {\left (2 a (5 b c-a d)+5 b^2 c x^2\right ) \sqrt {c+d x^2}}{x^4} \, dx}{5 c}\\ &=-\frac {a^2 \left (c+d x^2\right )^{3/2}}{5 c x^5}-\frac {2 a (5 b c-a d) \left (c+d x^2\right )^{3/2}}{15 c^2 x^3}+b^2 \int \frac {\sqrt {c+d x^2}}{x^2} \, dx\\ &=-\frac {b^2 \sqrt {c+d x^2}}{x}-\frac {a^2 \left (c+d x^2\right )^{3/2}}{5 c x^5}-\frac {2 a (5 b c-a d) \left (c+d x^2\right )^{3/2}}{15 c^2 x^3}+\left (b^2 d\right ) \int \frac {1}{\sqrt {c+d x^2}} \, dx\\ &=-\frac {b^2 \sqrt {c+d x^2}}{x}-\frac {a^2 \left (c+d x^2\right )^{3/2}}{5 c x^5}-\frac {2 a (5 b c-a d) \left (c+d x^2\right )^{3/2}}{15 c^2 x^3}+\left (b^2 d\right ) \text {Subst}\left (\int \frac {1}{1-d x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )\\ &=-\frac {b^2 \sqrt {c+d x^2}}{x}-\frac {a^2 \left (c+d x^2\right )^{3/2}}{5 c x^5}-\frac {2 a (5 b c-a d) \left (c+d x^2\right )^{3/2}}{15 c^2 x^3}+b^2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 104, normalized size = 1.01 \begin {gather*} -\frac {\sqrt {c+d x^2} \left (15 b^2 c^2 x^4+10 a b c x^2 \left (c+d x^2\right )+a^2 \left (3 c^2+c d x^2-2 d^2 x^4\right )\right )}{15 c^2 x^5}-b^2 \sqrt {d} \log \left (-\sqrt {d} x+\sqrt {c+d x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 124, normalized size = 1.20
method | result | size |
risch | \(-\frac {\sqrt {d \,x^{2}+c}\, \left (-2 a^{2} d^{2} x^{4}+10 a b c d \,x^{4}+15 b^{2} c^{2} x^{4}+a^{2} c d \,x^{2}+10 a b \,c^{2} x^{2}+3 a^{2} c^{2}\right )}{15 x^{5} c^{2}}+b^{2} \sqrt {d}\, \ln \left (x \sqrt {d}+\sqrt {d \,x^{2}+c}\right )\) | \(101\) |
default | \(a^{2} \left (-\frac {\left (d \,x^{2}+c \right )^{\frac {3}{2}}}{5 c \,x^{5}}+\frac {2 d \left (d \,x^{2}+c \right )^{\frac {3}{2}}}{15 c^{2} x^{3}}\right )-\frac {2 a b \left (d \,x^{2}+c \right )^{\frac {3}{2}}}{3 c \,x^{3}}+b^{2} \left (-\frac {\left (d \,x^{2}+c \right )^{\frac {3}{2}}}{c x}+\frac {2 d \left (\frac {x \sqrt {d \,x^{2}+c}}{2}+\frac {c \ln \left (x \sqrt {d}+\sqrt {d \,x^{2}+c}\right )}{2 \sqrt {d}}\right )}{c}\right )\) | \(124\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 94, normalized size = 0.91 \begin {gather*} b^{2} \sqrt {d} \operatorname {arsinh}\left (\frac {d x}{\sqrt {c d}}\right ) - \frac {\sqrt {d x^{2} + c} b^{2}}{x} - \frac {2 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} a b}{3 \, c x^{3}} + \frac {2 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} a^{2} d}{15 \, c^{2} x^{3}} - \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} a^{2}}{5 \, c x^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.75, size = 221, normalized size = 2.15 \begin {gather*} \left [\frac {15 \, b^{2} c^{2} \sqrt {d} x^{5} \log \left (-2 \, d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {d} x - c\right ) - 2 \, {\left ({\left (15 \, b^{2} c^{2} + 10 \, a b c d - 2 \, a^{2} d^{2}\right )} x^{4} + 3 \, a^{2} c^{2} + {\left (10 \, a b c^{2} + a^{2} c d\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{30 \, c^{2} x^{5}}, -\frac {15 \, b^{2} c^{2} \sqrt {-d} x^{5} \arctan \left (\frac {\sqrt {-d} x}{\sqrt {d x^{2} + c}}\right ) + {\left ({\left (15 \, b^{2} c^{2} + 10 \, a b c d - 2 \, a^{2} d^{2}\right )} x^{4} + 3 \, a^{2} c^{2} + {\left (10 \, a b c^{2} + a^{2} c d\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{15 \, c^{2} x^{5}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 199 vs.
\(2 (92) = 184\).
time = 2.13, size = 199, normalized size = 1.93 \begin {gather*} - \frac {a^{2} \sqrt {d} \sqrt {\frac {c}{d x^{2}} + 1}}{5 x^{4}} - \frac {a^{2} d^{\frac {3}{2}} \sqrt {\frac {c}{d x^{2}} + 1}}{15 c x^{2}} + \frac {2 a^{2} d^{\frac {5}{2}} \sqrt {\frac {c}{d x^{2}} + 1}}{15 c^{2}} - \frac {2 a b \sqrt {d} \sqrt {\frac {c}{d x^{2}} + 1}}{3 x^{2}} - \frac {2 a b d^{\frac {3}{2}} \sqrt {\frac {c}{d x^{2}} + 1}}{3 c} - \frac {b^{2} \sqrt {c}}{x \sqrt {1 + \frac {d x^{2}}{c}}} + b^{2} \sqrt {d} \operatorname {asinh}{\left (\frac {\sqrt {d} x}{\sqrt {c}} \right )} - \frac {b^{2} d x}{\sqrt {c} \sqrt {1 + \frac {d x^{2}}{c}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 403 vs.
\(2 (87) = 174\).
time = 1.20, size = 403, normalized size = 3.91 \begin {gather*} -\frac {1}{2} \, b^{2} \sqrt {d} \log \left ({\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2}\right ) + \frac {2 \, {\left (15 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{8} b^{2} c \sqrt {d} + 30 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{8} a b d^{\frac {3}{2}} - 60 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{6} b^{2} c^{2} \sqrt {d} - 60 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{6} a b c d^{\frac {3}{2}} + 30 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{6} a^{2} d^{\frac {5}{2}} + 90 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{4} b^{2} c^{3} \sqrt {d} + 40 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{4} a b c^{2} d^{\frac {3}{2}} + 10 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{4} a^{2} c d^{\frac {5}{2}} - 60 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} b^{2} c^{4} \sqrt {d} - 20 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} a b c^{3} d^{\frac {3}{2}} + 10 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} a^{2} c^{2} d^{\frac {5}{2}} + 15 \, b^{2} c^{5} \sqrt {d} + 10 \, a b c^{4} d^{\frac {3}{2}} - 2 \, a^{2} c^{3} d^{\frac {5}{2}}\right )}}{15 \, {\left ({\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} - c\right )}^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (b\,x^2+a\right )}^2\,\sqrt {d\,x^2+c}}{x^6} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________